package com.coderman.infosys.auth.adapter.controller.config;

import com.coderman.infosys.auth.domain.support.ability.IdentiferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * date: 2022/1/20
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
@RestController
public class IdentifyCodeController {

    @Autowired
    private IdentiferService identiferService;

    /**
     * 实体编码生成接口
     * @param identiferName
     * @return
     */
    @RequestMapping(value = "/api/identifer")
    public String getBOIdentifer(@RequestParam(value = "identiferName",required = true) String identiferName){
        return identiferService.getIdentiferCode(identiferName);
    }
}
